x86: allow Dom0 read-only access to IO-APICs
authorJan Beulich <jbeulich@suse.com>
Thu, 2 May 2013 14:46:02 +0000 (16:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 2 May 2013 14:46:02 +0000 (16:46 +0200)
commitd1222afda4d27916580c28533762e362d64ace22
treebb948d8c28906c1ad2fc11d80f64748631352052
parentb8efae696c9a2d46e91fa0eda739427efc16c250
x86: allow Dom0 read-only access to IO-APICs

There are BIOSes that want to map the IO-APIC MMIO region from some
ACPI method(s), and there is at least one BIOS flavor that wants to
use this mapping to clear an RTE's mask bit. While we can't allow the
latter, we can permit reads and simply drop write attempts, leveraging
the already existing infrastructure introduced for dealing with AMD
IOMMUs' representation as PCI devices.

This fixes an interrupt setup problem on a system where _CRS evaluation
involved the above described BIOS/ACPI behavior, and is expected to
also deal with a boot time crash of pv-ops Linux upon encountering the
same kind of system.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/domain_build.c
xen/arch/x86/io_apic.c
xen/arch/x86/mm.c
xen/arch/x86/setup.c
xen/drivers/passthrough/io.c
xen/drivers/passthrough/pci.c
xen/include/asm-x86/mm.h
xen/include/xen/iommu.h